import java.util.HashSet;
import java.util.Iterator;
import java.util.Random;
import java.util.Set;

public class RemoveEvenNumbers {
    public static void main(String[] args) {
        Set<Integer> numbers = new HashSet<>();
        Random random = new Random();
        for (int i = 0; i < 10; i++) {
            numbers.add(random.nextInt(100));
        System.out.println("Original Set: " + numbers);

        Iterator<Integer> iterator = numbers.iterator();
        while (iterator.hasNext()) {
            if (iterator.next() % 2 == 0) {
                iterator.remove();
            }
        }

        System.out.println("Set after removing even numbers: " + numbers);
    }
}
